package com.zhijie.authority.controller;


import com.zhijie.authority.service.ISysMenuService;
import com.zhijie.base.authority.entity.SysMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 菜单权限表 前端控制器
 * </p>
 *
 * @author 童志杰
 * @since 2021-02-02
 */
@RestController
@RequestMapping("/authority/sysMenu")
public class SysMenuController {

    @Autowired
    private ISysMenuService sysMenuService;

    private static int count = 0;

    @GetMapping("demo")
    public SysMenu demo() {
        count++;
        SysMenu byId = sysMenuService.getById(1);
        byId.setParentId(Long.valueOf(count));
        return byId;
    }
    //查询菜单列表
    //新增菜单
    //修改菜单
    //删除菜单

}
